package com.wwg.reflect;


import java.io.*;

public class ReflectGetDynamicResource {
    public static void main(String[] args) {
        InputStream resourceAsStream = ReflectGetDynamicResource.class.getClassLoader().getResourceAsStream("com.wwg.reflect/1.txt");
        InputStreamReader inputStreamReader = new InputStreamReader(resourceAsStream);
        BufferedReader bufferedReader = new BufferedReader(inputStreamReader);
        try {
            String s;
            while ((s = bufferedReader.readLine()) != null) {
                System.out.println(s);
            }

        } catch (IOException e) {
            e.printStackTrace();
        }
    }

}
